<template>
  <div>
    <h3>Item组件</h3>
    <p v-if="paramsId === '001'">CS简介</p>
    <p v-if="paramsId === '002'">DNF简介</p>
    <p v-if="paramsId === '003'">LOL简介</p>
    <div>a:{{a}}--b:{{b}}--c:{{c}}</div>

  </div>
</template>

<script>
export default {
  name: "Item",
  data() {
    return {
      paramsId:""
    }
  },
  watch:{
    $route:{
      immediate:true,
      handler(){
        this.paramsId=this.$route.query.id;
      }
    }
  },
  props:["a","b","c"]
};
</script>

<style></style>
